﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Yearly.aspx.cs" Inherits="KKU.RBSFPP.Web.Administrator.ReportingPages.Reporting.Yearly" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <br />
        ปี<asp:DropDownList ID="YearDropDownList" runat="server">
        </asp:DropDownList>
&nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="เรียกดู" />
&nbsp;<br />
        <br />
       <a href="http://localhost:42992/Report">ย้อนกลับ</a>
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="100%">
            <LocalReport ReportPath ="ReportingPages/Reporting/ReportYear.rdlc">
                <DataSources>
                    <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1" />
                </DataSources>
            </LocalReport>
        </rsweb:ReportViewer>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetReportYearly" TypeName="KKU.RBSFPP.Shared.ReportQuery.ReportQuery">
            <SelectParameters>
                <asp:ControlParameter ControlID="YearDropDownList" Name="selectedYear" PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
    </div>
    </form>
    <p>
       
</body>
</html>
